using System;
using System.Collections;
namespace AppToolKit.Model
{
	[Serializable]
	public abstract class MasterEntityBase : EntityBase, IMasterEntity, IEntity
	{
		public abstract IList Items
		{
			get;
			set;
		}
		public void SetItem(IDetailEntity detail)
		{
			this.BeforeAddDetail(detail);
			detail.Master = this;
		}
		public virtual void BeforeAddDetail(IDetailEntity detail)
		{
		}
	}
}
